<?php

/** @var \Laravel\Lumen\Routing\Router $router */

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It is a breeze. Simply tell Lumen the URIs it should respond to
| and give it the Closure to call when that URI is requested.
|
*/

$router->get('/', function () use ($router) {
    return $router->app->version();
});


$router->get('text', [
    'as' => 'text', 'uses' => 'IndexController@text'
]);
$router->get('sleep', [
    'as' => 'sleep', 'uses' => 'IndexController@sleep'
]);


$router->get('/redis/set', [
    'as' => 'redis.set', 'uses' => 'IndexController@redisSet'
]);
$router->get('/redis/get', [
    'as' => 'redis.get', 'uses' => 'IndexController@redisGet'
]);


$router->get('/mysql/create', [
    'as' => 'mysql.create', 'uses' => 'IndexController@mysqlCreate'
]);
$router->get('/mysql/show', [
    'as' => 'mysql.show', 'uses' => 'IndexController@mysqlShow'
]);



